PDF4Java Reference Documentation
com.o2sol.pdf4java.utilities Package / PDFEncryptor Class / decryptFile Method / decryptFile(String,String,String,boolean) Method
Path to the input PDF file.
Password for decrypting the input file.
Path to the decrypted PDF file.
If true then the internal structure of the output PDF file is compressed.
In This Topic
    decryptFile(String,String,String,boolean) Method
    In This Topic
    Decrypts the PDF file given in input stream and saves the encrypted file to output stream.
    Syntax
    public static void decryptFile( 
       java.lang.String inputFileName,
       java.lang.String inputPassword,
       java.lang.String outputFileName,
       boolean enableObjectCompression
    )

    Parameters

    inputFileName
    Path to the input PDF file.
    inputPassword
    Password for decrypting the input file.
    outputFileName
    Path to the decrypted PDF file.
    enableObjectCompression
    If true then the internal structure of the output PDF file is compressed.
    See Also